#{extends 'main.html' /}
#{set title:'AgendaWeb' /}


<script type="text/javascript">
	
	function voltar(){
		window.open("@{Usuarios.listarUsuarios}","_top");
	}
	
	
</script>

#{cabecalho/}

#{erros/}

<body>
	
	<form action="@{Usuarios.editar()}" method="GET">
	
		<!-- &nbsp; -->
		
		<table class="subFormulario" align="center" style="width: 30%">
			<tbody align="center">
				
				<tr>
					<th colspan="3">
						Alterar Usuario
					</th>
				</tr>
				<tr>
					<td>
						Nome :
					</td>
					<td align="left">
						<input type="text" name="nome" value="${usuario?.nome}" class="login-box-field" />
					</td>
				</tr>
				<tr>
					<td>
						Sobrenome :
					</td>
					<td align="left">
						<input type="text" name="sobrenome" value="${usuario?.sobrenome}" class="login-box-field"/>
					</td>
				</tr>
				<tr>
					<td>
						E-mail* :
					</td>
					<td align="left">
						<input type="text" name="email" value="${usuario?.email}" class="login-box-field"/>
					</td>
				</tr>
				<tr>
					<td>
						Senha* :
					</td>
					<td align="left">
						<input type="text" name="senha" value="${usuario?.senha}" class="login-box-field"/>
						<input type="hidden" name="id" value="${usuario?.id}"/>
					</td>
				</tr>
				
			</tbody>
			
			<tfoot align="center">
				<tr>
					<td colspan="2">
						<input type="submit" value="Editar"/>
						<input type="button" value="Voltar" onclick="voltar()"/>
					</td>
				</tr>
			</tfoot>
			
		</table>
	</form>
	
</body>

#{rodape/}